//
//  UIBarButtonItem+CZAddition.m
//  PerfectLife
//
//  Created by zxy on 2018/12/4.
//  Copyright © 2018 zssh. All rights reserved.
//

#import "UIBarButtonItem+CZAddition.h"

@implementation UIBarButtonItem (CZAddition)

+(UIBarButtonItem *)setupNavigationItemImageName:(NSString *)itemImageName target:(id)target action:(SEL)selector{
    UIBarButtonItem *item = [[UIBarButtonItem alloc]initWithImage:[[UIImage imageNamed:itemImageName] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStylePlain target:target action:selector];
    return item;
}

+(UIBarButtonItem *)setupNavigationItemTitle:(NSString *)title target:(id)target action:(SEL)selector{
    UIBarButtonItem *item = [[UIBarButtonItem alloc]initWithTitle:title style:UIBarButtonItemStylePlain target:target action:selector];
    return item;
}
@end
